package com.github.xuemingyu.springboot.acticitycloud.service;

import com.bidanet.bdcms.core.vo.Page;
import com.github.xuemingyu.springboot.acticitycloud.entity.Registration;
import com.taobao.api.ApiException;

public interface RegistrationService extends BaseService<Registration> {
    void queryLike(Registration registration, Page<Registration> page);

    /**
     * 报名
     *
     * @param registration
     * @throws ApiException
     */
    void insert(Registration registration) throws ApiException;

    /**
     * 取消报名
     *
     * @param activityId
     */
    void joinout(Long activityId,String userId);

    /**
     * 签到
     *
     * @param registration
     */
    void update(Registration registration);

    void delete(Long id);

}
